<?php

namespace app\common\library;

use app\admin\model\AuthRule;
use fast\Tree;
use think\Exception as ThinkException;
use think\exception\PDOException;

class Exception
{

    const ERROR_CODE = 600;

    /**
     * 抛出错误
     * 
     * @param string $error_message 错误描述
     * @param array  $params        描述中的参数
     */
    public function __construct($error_message, $params = [])
    {
        throw new ThinkException($error_message, self::ERROR_CODE);
    }
}
